package com.example.demo.service.impl;

import com.example.demo.entity.CrCustomer;
import com.example.demo.mapper.CrCustomerMapper;
import com.example.demo.service.CrCustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
@Service
public class CrCustomerServiceImpl implements CrCustomerService {
    @Autowired
    CrCustomerMapper crCustomerMapper;
    @Override
    public int inseCustomer(CrCustomer crCustomer) {
        return crCustomerMapper.inseCustomer(crCustomer.getId(),crCustomer.getCustomername(),crCustomer.getPhone(),crCustomer.getCarnumber(),crCustomer.getCreatetime(),crCustomer.getRemark());
    }
}
